<h2>Комментарии</h2>
	<ul class="commentlist">

<?php 
$i=1;
//������� ��� �������
	foreach ($comments as $key )
	{
		$Id_Coment = "comment_odd";
		if($i%2!=0)
		{
			$Id_Coment = "comment_even";
			
		}
		
		echo '
		  <li class="'.$Id_Coment.'">
            <div class="author"><span class="name"><a href="#">'.$key->user_name.'</a></span> <span class="wrote">написал:</span></div>
            <div class="submitdate"><a href="#">'.date("d.m.Y H:i",strtotime($key->date_com)).'</a></div>
            <p>'.$key->text.'</p>
          </li>		
		';
		
		$i++;
		
	}
	
?>

</ul>

        
        
         
        